package com.zg.message.domain.req;

import com.zg.common.core.req.EditReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/22 15:05
 */

@Data
@ApiModel
@NoArgsConstructor
public class MsgInfoEditReq extends  EditReq {

    @ApiModelProperty(value = "标题", required = true)
    @NotEmpty(message = "标题不能为空")
    private String title;       // 标题
    @ApiModelProperty(value = "内容", required = true)
    @NotEmpty(message = "内容不能为空")
    private String content;     // 内容
    @ApiModelProperty(value = "模板ID", required = true)
    @NotBlank(message = "模板ID不能为空")
    private Long templateId;    // 模板ID
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "状态不能为空")
    private Integer state;      // 状态
    @ApiModelProperty(value = "发送者", required = true)
    @NotEmpty(message = "发送者不能为空")
    private String sender;      // 发送者
    @ApiModelProperty(value = "发送时间", required = true)
    @NotBlank(message = "发送时间不能为空")
    private Date sendTime;      // 发送时间
    private Boolean isPublish;  // 是否公告
    private String orgIds;      // 部门ID列表

    private Long tenantId;       //租户ID
}
